Shopglut\tools\miniCart\MiniCart B

Total Complexity 100
Dependencies 0
Dependents 1
Total lines 665
Lines of code 523
Logical lines of code 231
Comment lines 29
Methods 24
Properties 1

Methods 24

Method Rating Maintainability Complexity Lines of code
getSettings()
B
47 21 27
maybe_restore_shared_cart()
A
48 11 33
ajax_update_cart_quantity()
A
49 8 28
ajax_add_to_cart()
A
50 8 27
ajax_send_cart_email()
A
52 8 22
renderMainDashboard()
S
43 1 99
ajax_remove_cart_item()
S
52 6 24
ajax_generate_share_url()
S
51 5 26
maybe_initialize_mini_cart()
S
52 3 24
generate_cart_email_html()
S
52 3 23
render_mini_cart_html()
S
59 3 14
enqueue_mini_cart_assets()
S
51 2 25
add_cart_to_menu()
S
56 2 20
get_cart_icon_html()
S
65 3 10
ajax_get_mini_cart()
S
58 2 15
ajax_update_mini_cart()
S
60 2 13
get_cart_contents_html()
S
61 2 12
get_cart_footer_html()
S
53 1 27
generate_dynamic_css()
S
57 1 20
render_mini_cart_shortcode()
S
66 2 8
render_cart_share_shortcode()
S
66 2 8
get_instance()
S
69 2 7
__construct()
S
66 1 8
renderMiniCartContent()
S
82 1 3